package com.qst.rongxiaotong.service;

import com.github.pagehelper.PageInfo;
import com.qst.rongxiaotong.pojo.*;

import java.util.List;

public interface FinanceService {

    List<Intention> selectIntentionByName(String name);

    void insertIntentionByName(Intention intention);

    void updateIntentionByName(Intention intention);

    void deleteIntentionByName(String name);

    List<Recommender> selectRecommend(String name);
    //个人贷款信息处理
    List<Finance> selectByFinance(Finance finance);//查询融资情况,显示我的融资信息

    Finance selectByFinanceId(Integer id);//根据Financeid查询融资情报,信息回显

    void deleteByFinanceId(Integer id);//根据Financeid删除融资情报

    void updateByFinance(Finance finance);//根据Financeid修改融资情报

    //贷款
    void addMulti(Finance finance);//组合贷款

    void add(Finance finance);//个人贷款

    PageInfo<Recommender> selectRecommendFY(Integer pageNum);//fen页查询融资推荐人

    PageInfo<Finance> selectByFinance(Finance finance, Integer pageNum);//根据银行id与申请人查询融资情报


    FinaceUserDetails selectFinaceUser(String name,String bankId);




}
